package com.rest;

import java.io.InputStream;

import javax.validation.constraints.NotNull;
import javax.ws.rs.Consumes;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.core.MediaType;

import com.sun.jersey.core.header.FormDataContentDisposition;
import com.sun.jersey.multipart.FormDataParam;

@Path("/deploy")
public interface DeployService {

	@POST
	@Path("/")
	@Consumes(MediaType.MULTIPART_FORM_DATA)
	String deployWar(@NotNull @FormDataParam("warFile") InputStream inputStream,
			@FormDataParam("warFile") FormDataContentDisposition fileDetail, @FormDataParam("path") String path);
}
